home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / pcm.xml < prev    next >
Text File  |  2002-08-30  |  3KB  |  71 lines

  1. <search function="pcm">
  2.   <name>PC Magazine</name>
  3.   <description>
  4.     Search the PC Magazine archives.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>/all</td><td> - </td><td>All Sites</td></tr>
  8.           <tr><td>/base</td><td> - </td><td>Baseline</td></tr>
  9.       <tr><td>/cio</td><td> - </td><td>CIO Insight</td></tr>
  10.       <tr><td>/eweek</td><td> - </td><td>eWeek</td></tr>
  11.       <tr><td>/extremetech</td><td> - </td><td>ExtremeTech</td></tr>
  12.       <tr><td>/neteconomy</td><td> - </td><td>The Net Economy</td></tr>
  13.       <tr><td>/zdsb</td><td> - </td><td>Ziff Davis Smart Business</td></tr>
  14.       </table>
  15.     <div class="helpboxDescLabels">Example:</div>
  16.     <table class="helpboxDescTable">
  17.           <tr><td>pcm buttonboogie /base</td></tr>
  18.       </table>
  19.   </description>
  20.   <category>Computers</category>
  21.   <link>http://www.pcmag.com/</link>
  22.   <contributor>John W. Bairen, Jr., Ryan Edwards</contributor>
  23.   
  24.   <form name="pcmf"
  25.         action="http://www.pcmag.com/search_results/" 
  26.         method="get">
  27.     <input type="hidden" name="selected_site" value=""/>
  28.     <input type="hidden" name="query" value=""/>
  29.   </form>
  30.   
  31.   <script><![CDATA[
  32.     function pcm(q)
  33.     {
  34.       var args = parseArgs(q, "all, base, cio, eweek, extremetech, pcm, neteconomy, zdsb");
  35.       
  36.       if( nullArgs("pcm",q) )
  37.         return false;
  38.       else if( args.switches.length == 1 )
  39.       {
  40.         switch( args.switches[0].name )
  41.         {
  42.           case "all": site = '0|Baseline&selected_site=CIO+Insight&selected_site=eWEEK&selected_site=ExtremeTech&selected_site=PC+Magazine&selected_site=The+Net+Economy&selected_site=Ziff+Davis+Smart+Business| '; break;
  43.           case "base": site = "17|Baseline|http://www.baselinemag.com/"; break;
  44.           case "cio": site = "13|CIO+Insight|http://www.cioinsight.com"; break;
  45.           case "eweek": site = "7|eWEEK|http://www.eweek.com/"; break;
  46.           case "extremetech": site = "4|ExtremeTech|http://www.extremetech.com/"; break;
  47.           case "neteconomy": site = "9|The+Net+Economy|http://www.theneteconomy.com/"; break;
  48.           case "zdsb": site = "11|Ziff+Davis+Smart+Business|http://www.smartbusinessmag.com/"; break;
  49.         }
  50.         document.pcmf.query.value = args.q;
  51.         document.pcmf.selected_site.value = site;
  52.         submitForm(pcmf);
  53.       }
  54.       else if( args.switches.length > 1 )
  55.         nullArgs("pcm","?");
  56.       else
  57.       {
  58.         document.pcmf.query.value = args.q;
  59.         document.pcmf.selected_site.value = "3|PC+Magazine|http://www.pcmag.com/";
  60.         submitForm(pcmf);
  61.       }
  62.     }
  63.   ]]></script>
  64.  
  65.   <copyright>
  66.     Copyright (c) 2002 David Bau
  67.     Distributed under the terms of the
  68.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  69.   </copyright>
  70. </search>
  71.